package com.freecloud.whispered.auth.oauth2;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author: maomao
 * @Date: 2019-08-11 21:59
 */
public class ClientOAuth2Token implements AuthenticationToken {

    private String token;

    public ClientOAuth2Token(String token){
        this.token = token;
    }


    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
